From 1219b67cdb14c904e7d956eff91a2c5152c1ce9b Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 10 Aug 2015 14:46:23 -0300 Subject: [PATCH] placesview: no url for networks We are not showing the URL of network locations anymore, since they are distracting and not necessary. The code, however, forgot to cleanup the URL, so we are still showing the URL for network locations. Fix that by properly cleanup the URL for network locations. --- gtk/gtkplacesview.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gtk/gtkplacesview.c b/gtk/gtkplacesview.c index 9c5f334248..9c05db2b2d 100644 --- a/gtk/gtkplacesview.c +++ b/gtk/gtkplacesview.c @@ -734,6 +734,9 @@ add_mount (GtkPlacesView *view, schema = g_uri_parse_scheme (uri); is_network = g_strcmp0 (schema, "file") != 0; + if (is_network) + g_clear_pointer (&path, g_free); + if (!g_mount_is_shadowed (mount)) { GtkWidget *row; -- 2.30.2